﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace FlyingHat.Core.Migrations
{
    public partial class addBookshelfSort : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "Sort",
                table: "Bookshelf",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.UpdateData(
                table: "User",
                keyColumn: "Id",
                keyValue: 1L,
                columns: new[] { "CreatedTime", "LastLoginTime", "ModifyTime", "Password", "Salt" },
                values: new object[] { new DateTime(2021, 12, 27, 12, 40, 20, 159, DateTimeKind.Local).AddTicks(5471), new DateTime(2021, 12, 27, 12, 40, 20, 159, DateTimeKind.Local).AddTicks(5474), new DateTime(2021, 12, 27, 12, 40, 20, 159, DateTimeKind.Local).AddTicks(5459), "8B8734C1F1BB74D7AC032F74E2690CF1", "2A90DD1C5F5868F0F986AB141695CCD8EDEC6F7D79E7F481C23853D2276C0BB1CA76C8CF" });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Sort",
                table: "Bookshelf");

            migrationBuilder.UpdateData(
                table: "User",
                keyColumn: "Id",
                keyValue: 1L,
                columns: new[] { "CreatedTime", "LastLoginTime", "ModifyTime", "Password", "Salt" },
                values: new object[] { new DateTime(2021, 12, 22, 21, 36, 10, 555, DateTimeKind.Local).AddTicks(9046), new DateTime(2021, 12, 22, 21, 36, 10, 555, DateTimeKind.Local).AddTicks(9050), new DateTime(2021, 12, 22, 21, 36, 10, 555, DateTimeKind.Local).AddTicks(9030), "D6E010F35B4AD3B030021CD712E27E2D", "EE03C1C336A7B0CE7BFCC544A643F8E490A0B6CBE83794CE99217E9AFE384A2FD4D436A8" });
        }
    }
}
